3D Graphics Programming with QuickDraw 3D 1.5.4
Previous | QD3D Book | Overview | Chapter Contents | Next
A polyline is a collection of n lines defined by the n +1 points that define the endpoints of each line segment. The entire polyline can have a set of attributes, and each line segment in the polyline also can have a set of attributes. (In addition, each vertex can have a set of attributes.) A polyline is defined by the TQ3PolyLineData data type. See "Creating and Editing Polylines" for a description of the routines you can use to create and edit polylines. Figure 20 shows a polyline.
A polyline is not closed. The last point should not be connected to the first.
typedef struct TQ3PolyLineData {
unsigned long numVertices;
TQ3Vertex3D *vertices;
TQ3AttributeSet *segmentAttributeSet;
TQ3AttributeSet polyLineAttributeSet;
} TQ3PolyLineData;
Previous | QD3D Book | Overview | Chapter Contents | Next